package com.decorator.demo1;

import com.decorator.demo1.impl.BigTrouser;
import com.decorator.demo1.impl.Finery;
import com.decorator.demo1.impl.Sneakers;
import com.decorator.demo1.impl.TShirts;

public class Test {

	public static void main(String[] args) {
		Person p = new Person("小菜");

		Finery s = new Sneakers();
		Finery b = new BigTrouser();
		Finery t = new TShirts();

		s.decorate(p);
		b.decorate(s);
		t.decorate(b);

		t.show();
	}

}
